﻿@model PagingDataSet<GroupMember>
@*@Html.CheckBox("memberIds-checkAll", false)*@
<form action="#" method="post" id="Form-BatchSet">
    <div class="mcon2 sp1">
        <ul>
            @{

                if (Model != null && Model.Count() > 0)
                {
                    foreach (var temp in Model)
                    {
                        <li id="ManageMembers_@(temp.Id)" style="width:240px; margin-bottom:10px;">
                            <input type="checkbox" value="@temp.UserId" name="userIds" id="userIds-@temp.Id" />编号：@temp.UserId
                            <div class="sp-pho1" style="float:left;">
                                @Html.ShowUserAvatar(temp.UserId, AvatarSizeType.Big, false)
                            </div>
                            <div style="word-break:normal; padding-left:10px; line-height:22px;float:left;">
                                <p class="sp-str1">年龄：@temp.User.Age 岁 &nbsp;&nbsp;</p>
                                <p>
                                    性别： @{
                        if (temp.User.Profile.Gender == GenderType.FeMale)
                        {
                            @:女
                                }
                        if (temp.User.Profile.Gender == GenderType.Male)
                        {
                            @:男
                                }
                        if (temp.User.Profile.Gender == GenderType.NotSet)
                        {
                            @:未知
                                }
                                    }&nbsp;&nbsp;
                                </p>
                                <p>类型：@(temp.User.Basecase == null ? "未填写" : temp.User.Basecase.MaritalStatus)</p>
                                <p>婚姻状况：</p>
                                <p>
                                    @*@if (temp.IsManager)
                                    {
                                        @Html.Link("取消管理员", SiteUrls.Instance().SetManager(temp.UserId, false, Url.SpaceKey()), "取消管理员", htmlAttributes: new { id = "IsManager-" + temp.Id })
                                    }
                                    else
                                    {
                                        @Html.Link("设为管理员", SiteUrls.Instance().SetManager(temp.UserId, true, Url.SpaceKey()), "设为管理员", htmlAttributes: new { id = "IsManager-" + temp.Id })
                                    }*@
                                    @Html.Link("编辑", SiteUrls.Instance().GroupUserProfileGuideAvatar(Url.SpaceKey(), temp.User.UserId), "编辑", htmlAttributes: new { })
                                </p>
                            </div>
                        </li>
                    }
                }

            }
        </ul>
    </div>
</form>